package com.globallogic.qdumper.bean;

public class QueryItem
{
    private String queryText;
    private String queryFileName;

    private String resultFileName;
    private String resultText;
    private long executedTime;

    private boolean modifiedQuery = false;

    public String getQueryText()
    {
        return queryText;
    }

    public void setQueryText(String querySource)
    {
        this.queryText = querySource;
    }

    public String getQueryFileName()
    {
        return queryFileName;
    }

    public void setQueryFileName(String sourceFileName)
    {
        this.queryFileName = sourceFileName;
        resultFileName = sourceFileName.replace(".sql", ".xml");
    }

    public boolean isModifiedQuery()
    {
        return modifiedQuery;
    }

    public void setModifiedQuery(boolean modifiedQuery)
    {
        this.modifiedQuery = modifiedQuery;
    }

    public String getResultFileName()
    {
        return resultFileName;
    }

    public String getResultText()
    {
        return resultText;
    }

    public void setResultText(String dumpedText)
    {
        this.resultText = dumpedText;
    }

    public void setExecutedTime(long executedTime)
    {
        this.executedTime = executedTime;
    }

    public long getExecutedTime()
    {
        return executedTime;
    }
}
